package timing.ukulele.flow.vo;

/**
 * 返回码和返回描述封装类
 */
public enum ResultCode {
    SUCCESS(200, "成功"),
    FAIL(500, "失败"),
    FILE_ERROR(501, "文件解析失败"),
    UNAUTHORIZED(401, "无效的授权信息"),
    FORBIDDEN(403, "无权访问请求资源");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
